-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport][v2.7] GHA CI #472
Conversation
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alex7285@gmail.com>
Signed-off-by: Alexandre Lamarre <alex7285@gmail.com>
Signed-off-by: Alexandre Lamarre <alex7285@gmail.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Compile release binaries only for linux amd & arm Change release binary name format to match previous one Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
…uting Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
workflow_call: | ||
push: | ||
branches: | ||
- release/v5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just be release/v*
so we don't have to keep updating it?
build: | ||
strategy: | ||
matrix: | ||
os : [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra white-space at the end
jobs: | ||
build: | ||
strategy: | ||
matrix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative to run on both platforms:
strategy:
matrix:
archBox:
- { arch: amd64, vmArch: x64 }
- { arch: arm64, vmArch: arm64 }
runs-on: runs-on,runner=1cpu-linux-${{ matrix.archBox.vmArch }},run-id=${{ github.run_id }}
```
with: | ||
name: bro-build-artifacts-${{ matrix.os }} | ||
path: ./dist/artifacts/ | ||
- name : Debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use this too, but I assume we want to pull out the Debug parts once everything's working
- name : Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra white-space at end of line 37
} | ||
|
||
k3d cluster delete $CLUSTER_NAME || true | ||
k3d cluster create $CLUSTER_NAME --image "docker.io/rancher/k3s:${K3S_VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docker.io/
part isn't needed
echo "Timeout reached, exiting..." | ||
exit 1 | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space on line 30 not needed (git diff
is complaining about these)
FROM registry.suse.com/bci/bci-micro:latest | ||
COPY bin/backup-restore-operator /usr/bin/ | ||
ENTRYPOINT ["backup-restore-operator"] | ||
COPY --from=builder /usr/src/app/bin/backup-restore-operator /usr/bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space after backup-restore-operator
} | ||
|
||
source $(dirname $0)/version | ||
source ./scripts/version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought leaving it as $(dirname $0)
would be better in case you're running this from some other directory
@@ -1,36 +1,16 @@ | |||
#!/bin/bash | |||
set -ex | |||
function echo_with_time { | |||
echo "$(date --utc +%Y-%m-%dT%H:%M:%SZ) "$@"" | |||
echo "$(date --utc +%Y-%m-%dT%H:%M:%SZ) $*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --utc
option isn't recognized on Darwin (/bin/date
so I'm not running some variant) but -u
is a shortcut for it on linux. So better to just go with -u
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just white-space issues, although you might want to try the dual-runner solution and see if CI succeeds on both platforms.
JK - in the process of my renovate testing today I realized that when you create a tag/release it will use workflows that exist in that local repo at that commit. Not the default branch |
...just noticed the GHA job that ran after I added this fix has the value empty. read the docs harder on GH and found out I read the wrong docs and mixed env var and context. this changes it to use a valid context within the GHA
Backport of :
#455
#457
#469